#include "tcp_client.hpp"
#include <memory>
#include <string>

void Usage(const char *proc)
{
    printf("\nUsage: %s svrip svrport\n", proc);
}

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }

    std::string svrip = argv[1];
    uint16_t svrport = atoi(argv[2]);
    std::unique_ptr<TcpClient> pcli(new TcpClient(svrip, svrport));
    pcli->Run();
    return 0;
}